package com.zhonghui.mes.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 制造执行MES-质量管理-生产采样对象 mes_production_sampling
 * 
 * @author zhonghui
 * @date 2023-12-15
 */
@Data
public class MesProductionSamplingVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /** 流水号 */
    @Excel(name = "流水号")
    private String serialNumber;

    /** 作业装配id */
    @Excel(name = "作业装配id")
    private Long jobId;

    @Excel(name = "作业名称")
    private String jobName;
    @Excel(name = "计划编号")
    private Long subId;

    /** 物料id */
    @Excel(name = "物料id")
    private Long materialId;

    @Excel(name = "物料名称")
    private String materialName;
    @Excel(name = "规格")
    private String materialModel;
    @Excel(name = "型号")
    private String materialSpecifications;
    @Excel(name = "单位")
    private String materialUnit;

    /** 检验标准id */
    @Excel(name = "检验标准id")
    private Long inspectionId;
    @Excel(name = "检验标准")
    private Long checkType;
    @Excel(name = "检验项")
    private String checkItem;
    @Excel(name = "阈值上限")
    private Double upLimit;
    @Excel(name = "阈值下限")
    private Double lowerLimit;


    /** 生产数量 */
    @Excel(name = "生产数量")
    private Long quantity;

    /** 采样数量 */
    @Excel(name = "采样数量")
    private Long samplesNumber;

    /** 检验值 */
    @Excel(name = "检验值")
    private Long inspectionValue;

    /** 检验结果(0-不合格,1-合格) */
    @Excel(name = "检验结果(0-不合格,1-合格)")
    private Long inspectionResults;

    /** 检验人 */
    @Excel(name = "检验人")
    private Long checkUserId;

    /** 检验时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectorTime;


}
